﻿
@{
    ViewBag.Title = "ShroffBook";
}
@model justice.ViewModel.shroffbookinfo
<style>
    .clear {
        clear: both;
    }

    .tabletitle {
        text-align: center;
        color: black;
        padding-top: 10px;
    }

    .tablek {
        background-color: white;
        font-family:'黑体';
    }

    .tb {
        width: 90%;
        margin: auto;
        margin-top: 5px;
        margin-bottom: 10px;
        font-size: 16px;
    }

    span {
        color: black;
    }

    .tablenumber {
        width: 90%;
        margin: auto;
        margin-top: 15px;
        font-size:17px;
    }

    .tb div {
        margin: 5px 5px 5px 5px;
    }

    .tb1 {
        width: 100%;
    }

    .tb input {
        width: 98%;
        margin: auto;
        display: block;
        border: 0;
        outline: none;
    }

    .tb textarea {
        width: 98%;
        height: 150px;
        margin: auto;
        display: block;
        margin-top: 10px;
        margin-bottom: 10px;
        resize: vertical;
    }

    input[type=checkbox], input[type=radio] {
        display: inline-block;
        width: 30px;
    }

    .tb .form-control {
        width: 40%;
        margin-left: 40px;
    }

    .tb1 .form-control {
        width: 100%;
        margin-left: 0;
    }

    .shi input {
        width: 50px;
        display: inline-block;
        border-bottom: 1px solid;
        text-align: center;
    }

    .tb .yjs {
        width: 50%;
        display: inline-block;
    }

    .tb .dx {
        margin-left: 10px;
        margin-right: 10px;
        width: 80px;
        display: inline-block;
        text-align: center;
    }

    .tb .rsp {
        float: right;
    }
    .rsp input{
        border-bottom:1px solid;
    }
    .tb .di {
        width: 200px;
        display: inline-block;
        border-bottom: 1px solid;
    }

    label {
        font-weight: 500;
    }

    .qian {
        text-align: right;
    }

    .qian span {
        text-align: left;
        float: left;
    }

    .qian .di {
        width: 150px;
        text-align: center;
        position: relative;
        right: 20px;
        bottom: -120px;
    }
    .bey .di{
        text-align:center;
    }
    .shrbtn {
        width: 90%;
        margin: auto;
        display: block;
        margin-top: 20px;
        margin-bottom: 20px;
        border-color: black;
        font-size: 18px;
        font-weight: bold;
    }

    .modal-content {
        margin-top: 40%;
        border-radius: 0;
    }
    .btns *{
        display:block;
        margin:20px;
    }
    .btns{
        position:fixed;
        top:50%;
        right:1%;
    }
</style>
<script>
    $(function () {
        var input = $('input[type=checkbox],input[type=radio]');
        input.click(function () {
            return false;
        });
        $('#top').click(function () {
            $('body,html').animate({ scrollTop: 0 }, 500);
        });
        if ($('#succ').html() != '') {
            $('#autodian').click(function () { }).click();
        }
        $('#contniue,#cancel,#tui').click(function () {
            $.post("/home/clearsession");
        });
    });
</script>
<a href="#tui" data-toggle="modal" id="autodian">@Session["success"]</a>
<div class="modal fade" id="tui" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span>&times;</span><span class="sr-only">Close</span>
                </button>
                <h4 class="modal-title"><span class="glyphicon glyphicon-comment"></span> 提示消息</h4>
            </div>
            <div class="modal-body">委托书已录入成功，是否继续录入其他资料？</div>
            <div class="modal-footer">
                <span id="succ" style="display:none;">@Session["success"]</span>
                <a class="btn btn-default" href="/As/MakingsCirculation?shroffId=@Session["success"]" id="contniue">确定</a>
                <button type="button" class="btn btn-default" data-dismiss="modal" id="cancel">取消</button>
            </div>
        </div>
    </div>
</div>
<div class="btns">
    <a href="javascript: history.go(-1);" class="btn btn-default backbtn">返回</a>
    @if (ViewBag.rolename == "前台录入")
    {
        <a href="/As/MakingsCirculation?shroffId=@ViewBag.id" class="btn btn-default backbtn">编辑鉴定材料流转单</a>
        <a href="/As/ForensicExaminationRecord?shroffId=@ViewBag.id" class="btn btn-default backbtn">编辑法医笔录</a>
        <a href="/As/ReceiptServiceEvaluations?shroffId=@ViewBag.id" class="btn btn-default backbtn">编辑送达回证</a>
    }
    @if (ViewBag.rolename == "法医")
    {
        <a href="/ForensicOpinion/AddForensicOpinionInfo?id=@ViewBag.id" class="btn btn-default backbtn">编辑法医意见书</a>
    }
    @if (ViewBag.rolename == "评审人")
    {
        <a href="/XKDShroffTrustBook/UpdateShroffTrustView?id=@ViewBag.id" class="btn btn-default backbtn">编辑鉴定委托书评审记录</a>
    }
    <a id="top" class="btn btn-default">返回顶部</a>
</div>
<div class="tablek"  >
    <h3 class="tabletitle">司法鉴定委托书</h3>
    <div class="tablenumber">表格编号：<span>@Model.shrbk.shroff_number</span></div>
    <table class="tb" id="ad" border="1">
        <tr>
            <td width="80"><div>委托人</div></td>
            <td><div>@Model.shrbk.client</div></td>
            <td width="80"><div>联系人</div></td>
            <td><div>@Model.shrbk.contact_user</div></td>
        </tr>
        <tr>
            <td><div>联系地址</div></td>
            <td><div>@Model.shrbk.contact_readdress</div></td>
            <td><div>联系电话</div></td>
            <td><div>@Model.shrbk.contact_phone</div></td>
        </tr>
        <tr>
            <td><div>委托日期</div></td>
            <td><div>@Model.shrbk.consignation_date</div></td>
            <td><div>送检人</div></td>
            <td><div>@Model.shrbk.submit_check_user</div></td>
        </tr>
        <tr>
            <td><div>与鉴定有关的基本案情</div></td>
            <td colspan="3">
                <div style="margin:10px 10px 10px 10px;">
                    被鉴定人情况：
                    <table class="tb1" border="1">
                        <tr>
                            <td width="80"><div>姓名</div></td>
                            <td><div>@Model.beapp.username</div></td>
                            <td width="80"><div>性别</div></td>
                            <td><div>@Model.beapp.sex</div></td>
                            <td width="80"><div>族别</div></td>
                            <td>
                                <div>@Model.narionality.nationalityName</div>
                            </td>
                        </tr>
                        <tr>
                            <td><div>出生年月</div></td>
                            <td><div>@Model.beapp.date_of_birth</div></td>
                            <td><div>文化程度</div></td>
                            <td><div>@Model.beapp.culture_degree</div></td>
                            <td><div>职业</div></td>
                            <td><div>@Model.beapp.profession</div></td>
                        </tr>
                        <tr>
                            <td><div>身份证号</div></td>
                            <td colspan="5"><div>@Model.beapp.ID_card</div></td>
                        </tr>
                        <tr>
                            <td><div>现住址</div></td>
                            <td colspan="5"><div>@Model.beapp.present_readdress</div></td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td><div>委托鉴定事项</div></td>
            <td colspan="3">
                @{
                    string e = "<div>" + Model.shrbk.consignation_transaction + "</div>";
                    WriteLiteral(e);
                }
            </td>
        </tr>
        <tr>
            <td><div>是否属于重新鉴定</div></td>
            <td colspan="3">
                <div>
                    <label><input @{if (Model.shrbk.is_re_shroff == "是") { WriteLiteral("checked"); } } name="is_re_shroff" value="是" type="radio" /><span>是</span></label>
                    <label><input @{if (Model.shrbk.is_re_shroff == "否") { WriteLiteral("checked"); } } name="is_re_shroff" value="否" type="radio" /><span>否</span></label>
                    <label><input @{if (Model.shrbk.is_re_shroff == "其他") { WriteLiteral("checked"); } } readonly name="is_re_shroff" value="其他" type="radio" /><span>其他</span></label>
                </div>
            </td>
        </tr>
        <tr>
            <td><div>鉴定材料</div></td>
            <td colspan="3">
                @{
                    string f = "<div>" + Model.shrbk.shroff_material + "</div>";
                    WriteLiteral(f);
                }
            </td>
        </tr>
        <tr>
            <td><div>鉴定用途</div></td>
            <td colspan="3">
                <div>
                    <label><input @{if (Model.shrbk.shroff_purpose == "涉保理赔") { WriteLiteral("checked"); } } name="shroff_purpose" value="涉保理赔" type="radio" /><span>涉保理赔</span></label>
                    <label><input @{if (Model.shrbk.shroff_purpose == "非涉保理赔") { WriteLiteral("checked"); } } name="shroff_purpose" value="非涉保理赔" type="radio" /><span>非涉保理赔</span></label>
                    <label><input @{if (Model.shrbk.shroff_purpose == "其他") { WriteLiteral("checked"); } } name="shroff_purpose" value="其他" type="radio" /><span>其他</span></label>
                </div>
            </td>
        </tr>
        @{ 
            if (Model.shrbk.insurer != null)
            {
                <tr id="insurer">
                    <td><div>涉保理赔保险公司</div></td>
                    <td colspan="3">
                        <div>@Model.inserer.insurerName</div>
                    </td>
                </tr>
            }
        }
        <tr>
            <td><div>鉴定时限</div></td>
            <td colspan="3">
                    @{ 
                        string[] a = Model.shrbk.shroff_time_limit.Split('*');
                        <div class="shi">
                            1.一般在<input readonly value="@a[0]" name="shroff_time_limit" />个工作日内；
                            2.遇到特殊情况知会双方延期至<input readonly value="@a[1]" name="shroff_time_limit_1" />个工作日。
                        </div>
                    }
            </td>
        </tr>
        @if (ViewBag.user.unit_id != null)
        {
            <tr>
                <td rowspan="2"><div>鉴定费用及收取方式</div></td>
                <td colspan="3">
                    <div>@Model.shrbk.get_shroff_money_type</div>
                </td>
            </tr>
            <tr>
                <td colspan="3"><div><span>预计收费总计：@Model.shrbk.shroff_money</span><span class="rsp">人民币大写<input readonly name="shroff_money_majuscular" value="@Model.shrbk.shroff_money_majuscular" class="dx" />元整</span></div></td>
            </tr>
        }
        <tr>
            <td><div>鉴定文书发送方式</div></td>
            <td colspan="3">
                <div>
                    @{ 
                        string b = Model.shrbk.document_methods.Substring(0,2);
                        if (b == "自取")
                        {
                            <label><input checked name="document_methods" value="自取" type="radio" /><span>自取一般采取此方式</span></label><br />
                            <label><input name="document_methods" value="" id="youji1" type="radio" /><span>邮寄&nbsp;</span>地址:<input readonly id="youji" class="di" /></label><br />
                            <label><input name="document_methods" value="" id="qita1" type="radio" /><span>其他方式(说明)<input id="qita" readonly class="di" /></span></label>
                        }
                        else if (b == "地址")
                        {
                            <label><input name="document_methods" value="自取" type="radio" /><span>自取一般采取此方式</span></label><br />
                            <label><input checked name="document_methods" value="" id="youji1" type="radio" /><span>邮寄&nbsp;</span>地址:<input readonly id="youji" value="@Model.shrbk.document_methods.Substring(3)" class="di" /></label><br />
                            <label><input name="document_methods" value="" id="qita1" type="radio" /><span>其他方式(说明)<input id="qita" readonly class="di" /></span></label>
                        }
                        else
                        {
                            <label><input name="document_methods" value="自取" type="radio" /><span>自取一般采取此方式</span></label><br />
                            <label><input name="document_methods" value="" id="youji1" type="radio" /><span>邮寄&nbsp;</span>地址:<input readonly id="youji" class="di" /></label><br />
                            <label><input checked name="document_methods" value="" id="qita1" type="radio" /><span>其他方式(说明)<input id="qita" readonly value="@Model.shrbk.document_methods.Substring(3)" class="di" /></span></label>
                        }
                    }
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div>
                    约定事项：<br />
                    <div>1.鉴定机构应当严格遵照有关技术规范保管和使用鉴定材料。鉴定委托人同意或者认可：</div>
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("1")) { WriteLiteral("checked"); } } name="use_shroff_material" value="1" type="checkbox" />因鉴定需要耗尽鉴定材料；</label><br />
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("2")) { WriteLiteral("checked"); } } name="use_shroff_material" value="2" type="checkbox" />因鉴定需要可能损坏鉴定材料；</label><br />
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("3")) { WriteLiteral("checked"); } } name="use_shroff_material" value="3" type="checkbox" />鉴定完成后无法完整退还鉴定材料；</label><br />
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("4")) { WriteLiteral("checked"); } } name="use_shroff_material" value="4" type="checkbox" />检材留样保存三个月；</label>
                    <div class="shi">2.鉴定时限：从该委托书生效之日起<input readonly value="@Model.shrbk.shroff_time" name="shroff_time" /> 个工作日</div>
                    <div>注：鉴定过程中补充或重新提取鉴定材料所需的时间，不计入鉴定时限。</div>
                    <div>3.特殊情形鉴定：</div>
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("1")) { WriteLiteral("checked"); } } value="1" name="special_situation" type="checkbox" />需要对女性做妇科检查；</label><br />
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("2")) { WriteLiteral("checked"); } } value="2" name="special_situation" type="checkbox" />需要对未成年人的身体检查；</label><br />
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("3")) { WriteLiteral("checked"); } } value="3" name="special_situation" type="checkbox" />需要对被鉴定人进行法医精神病鉴定；</label><br />
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("4")) { WriteLiteral("checked"); } } value="4" name="special_situation" type="checkbox" />需要到现场提取材料；</label><br />
                    <label><input @{if (Model.shrbk.use_shroff_material.Contains("5")) { WriteLiteral("checked"); } } value="5" name="special_situation" type="checkbox" />需要进行尸体解剖；</label>
                    <div class="bey">4.委托人要求鉴定人回避，被要求回避的鉴定人签名：<input readonly value="@Model.shrbk.shroff_user_qian" name="shroff_user_qian" class="di" /></div>
                    <div>5.鉴定过程中需要变更委托书内容，由双方协商确定。</div>
                    <div>6.其他约定事项。</div>
                </div>
            </td>
        </tr>
        <tr>
            <td><div>其他说明事项</div></td>
            <td colspan="3">
                @{
                    string g = "<div>" + Model.shrbk.other_transaction + "</div>";
                    WriteLiteral(g);
                }
            </td>
        </tr>
        <tr>
            <td><div>鉴定风险提示</div></td>
            <td colspan="3">
                <div>
                    1.委托人应向鉴定机构提供真实、完整、充分的鉴定材料，并对其真实性、合法性负责。<br />
                    2.鉴定意见属于专家专业性意见，其是否被 采信取决于办案机关的审查和判断，鉴定人和鉴定机构无权干涉。<br />
                    3.由于鉴定材料和客观条件限制，并非所有的鉴定都能得出明确的鉴定意见。<br />
                    4.鉴定活动遵循依法独立、客观、公正的原则，因此，鉴定意见可能对一方有利，另一方不利。
                </div>
            </td>
        </tr>
        <tr class="qian">
            <td colspan="2">
                <div style="height:150px;">
                    <span>委托人(机构)<br />(签名或者盖章)</span>
                    <input readonly value="@Model.shrbk.clientorinstitution_qian" name="clientorinstitution_qian" class="di" />
                </div>
            </td>
            <td colspan="2">
                <div style="height:150px;">
                    <span>接收委托的鉴定机构<br />(签名或者盖章)</span>
                    <input readonly value="@Model.shrbk.shroff_institution_qian" name="shroff_institution_qian" class="di" />
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="4"><div>监督管理管理电话：绵阳市司法局&nbsp;0816-2264821</div></td>
        </tr>
        <tr>
            <td><div>备注</div></td>
            <td colspan="3">
                @{
                    string t = "<div>" + Model.shrbk.remarks + "</div>";
                    WriteLiteral(t);
                }
            </td>
        </tr>
        @{ 
                if (@Model.shrbk.insurer != null)
                {
                    string[] h = Model.shrbk.inform_insurer.Split('*');
                <tr id="insurer1">
                    <td><div>通知保险公司</div></td>
                    <td colspan="3">
                        <div>
                            <label>时间：<input readonly value="@h[0]" required name="inform_insurer" class="di" /></label><br />
                            <label>通知人：<input readonly value="@h[1]" required name="inform_insurer_1" class="di" /></label><br />
                            <label>联系电话：<input readonly value="@h[2]" required name="inform_insurer_2" class="di" /></label>
                        </div>
                    </td>
                </tr>
            }
        }
    </table>
    <div style="height:10px;"></div>
</div>
